package cn.bdqn.pn.service.base.impl;

import cn.bdqn.pn.pojo.base.Question;
import cn.bdqn.pn.pojo.base.Reply;
import cn.bdqn.pn.reposity.base.ReplyReposity;
import cn.bdqn.pn.service.base.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ReplyServiceImpl implements ReplyService {
    @Autowired
    private ReplyReposity replyReposity;
    /**
     * 进行反馈问题增加一条
     * @param reply
     * @return
     */
    @Override
    public void addReply(Reply reply) {
        replyReposity.save(reply);

    }
    /**
     * 展示全部问题反馈
     * @return
     */
    @Override
    public List<Reply> showReply(  ) {

        return replyReposity.findAll();
    }
}
